package me.lijf.mqlite;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.redis.listener.RedisMessageListenerContainer;

import javax.annotation.PostConstruct;

@SpringBootApplication
public class MqliteApplication {
    @Autowired
    private RedisMessageListenerContainer container;

    public static void main(String[] args) {
        SpringApplication.run(MqliteApplication.class, args);
    }

    @PostConstruct
    public void start(){
        container.start();
    }


}
